package com.wanlian.jpush.push.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.wanlian.util.StringUtil;

/**
 * 消息
 * 
 * @author lenovo
 *
 */
@JsonInclude(Include.NON_EMPTY)
public class Message implements ICheckable {
	@JsonProperty(value = "msg_content")
	private String msgContent;
	
	private String title;
	@JsonProperty(value = "content_type")
	private String contentType;
	private Object extras;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public void setExtras(String extras) {
		this.extras = extras;
	}

	public String getMsgContent() {
		return msgContent;
	}

	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public Object getExtras() {
		return extras;
	}

	public void setExtras(Object extras) {
		this.extras = extras;
	}

	@Override
	public boolean checkIsAble() {
		if (StringUtil.hasValue(msgContent)) {
			return true;
		} else {
			return false;
		}
	}

}
